package com.atguigu.netty.dubborpc.provider;

import com.atguigu.netty.dubborpc.publicinterface.HelloService;

public class HelloServiceImpl implements HelloService {

    private int count = 0;

    @Override
    public String hello(String msg) {
        System.out.println("收到客户端消息=" + msg);
        if (msg != null) {
            return "你好，客户端，我已经收到你的消息" + "[" + msg + "]  第" +  (++count) + "次";
        }else {
            return "你好，客户端，我已经收到你的空消息";
        }
    }
}
